<template>
  <div class="login">
    <el-form class="myform">
      <h3>iHRM 后台登录系统</h3>
      <el-form-item>
        <el-input
          v-model="form.mobile"
          prefix-icon="el-icon-user-solid"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-input v-model="form.password" prefix-icon="el-icon-lock"></el-input>
      </el-form-item>
      <el-button type="primary" class="btn">登录</el-button>
      <el-form-item>
        <div class="text">还没有帐号？立即注册</div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // 表单的数据源
      form: {
        mobile: "13800000002", // 手机号
        password: "123456", // 密码
      },
    };
  },
};
</script>

<style lang="scss">
.login {
  background-image: url("../../assets/common/login.jpg");
  background-position: center;
  height: 100%;

  .myform {
    width: 520px;
    height: 400px;
    padding: 36px;
    padding-top: 0px;
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);

    h3 {
      font-size: 48px;
      font-weight: 200;
      text-align: center;
      letter-spacing: 1px; //设置文本之间的间距
      color: #fff;
      line-height: 1;
    }

    input.el-input__inner {
      height: 50px;
      background-color: rgba(255, 255, 255, 0.7);
      border: none;
      color: #68b0fe;
      border-radius: 6px;
      padding-left: 40px;
    }
    i.el-input__icon {
      color: #666;
    }

    .btn {
      width: 100%;
      height: 60px;
      font-size: 24px;
      background-color: #407ffe;
      border-radius: 6px;
    }

    .text {
      text-align: center;
      color: #fff;
    }
  }
}
</style>
